package com.chenjt.jvm.first.four_stack.DynamicLinking;

/**
 * 注释：理解invokedynamic指令
 *
 * @author chenjt
 * @date 2025/6/6 15:18
 */
@FunctionalInterface
interface Func{
    public boolean func(String str);
}

public class Lambda {

    public void lambda(Func func){
        return;
    }

    public static void main(String[] args) {
        Lambda lambda = new Lambda();
        Func func = s -> {
            return true;
        };
        lambda.lambda(func);

        lambda.lambda(s -> true);
    }

}
